jQuery.fn.extend({
	nulling: function(type, callback) {
		switch (type) {
			case 'import':
				var _null = $('<div class="wm-exception-upload wm-absolute-center clearfix">' +
					'<img src="../../img/default.png" />' +
					'<div class="title">暂无数据</div>' +
					'<div class="content">描述或建议，如导入交易数据以分析</div>' +
					'<button type="button" class="btn btn-primary import-btn">立即导入</button>' +
					'</div>');
				$(this).append(_null)
				callback(_null.find('.import-btn'));
				break;
			case 'prompt':
				var _null = $('<div class="wm-exception-null"><span class="glyphicon glyphicon-inbox" aria-hidden="true"></span> 没有搜到任何数据</div>');
				$(this).append(_null)
				// callback(_null.find('.import-btn'));
				break;
			case 'add':
				var _null = $('<div class="wm-exception-add wm-absolute-center clearfix">' +
					'<img src="../../img/default.png">' +
					'<div class="title">您还没添加任何项目</div>' +
					'<div class="content">和XX达成协议后，需要给XX建立一个项目档案。</div>' +
					'<button type="button" class="btn btn-primary add-btn">立即添加</button>' +
					'</div>');
				$(this).append(_null)
				callback(_null.find('.add-btn'));
				break;
			default:
				break;
		}
	}
})
